<script setup>
import centerCpn from "@components/center.vue"
import {provide,ref} from "vue";
const colorId = ref(100)
provide("themColor",colorId)

provide("changeColor",(newId) =>{
  colorId.value = newId
})

</script>


<template>
  <div>我是顶层组件</div>
  <centerCpn />
</template>